package com.lagou.service.impl;

import com.lagou.dao.ArticleDao;
/*import com.lagou.dao.impl.ArticleDaoImpl;*/
import com.lagou.domain.Article;
import com.lagou.service.ArticleService;

public class ArticleServiceImpl implements  ArticleService{

    private ArticleDao dao;

    public void setDao(ArticleDao dao) {
        this.dao = dao;
    }

    public void saveArticle(Article a) {
        System.out.println("service层添加方法saveArticle调用了");
        dao.add(a);
    }
}
